package com.example.demo3.controller;


import com.example.demo3.bean.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    Student student;

    @RequestMapping("index")
    public Object Index(){
        return "index !!!";
    }
    @RequestMapping("student")
    public Object student(){
        return student;
    }
}
